package com.yehangtech.designpattern.结构型_享元模式.entity;

public class Stock {
    private int total; // 库存总量
    private int used; // 库存已⽤

    public Stock() {
    }

    public Stock(int total, int used) {
        this.total = total;
        this.used = used;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getUsed() {
        return used;
    }

    public void setUsed(int used) {
        this.used = used;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "total=" + total +
                ", used=" + used +
                '}';
    }
}
